<!-- 添加服装 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<link
	href="${pageContext.request.contextPath}/css/designer/designer-User.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery-1.9.1.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/enterprise/newaddClothes.js"></script>
<title></title>
</head>
<style>
		label.error {
			color: #F06 !important;
			font-size: 12px;
			font-weight: normal;
			position: relative;
			top: -32px;
			left: 298px;
			vertical-align: middle;
			background: url(../images/error.png) no-repeat left center;
			padding-left: 18px;
		}
	</style>
<body>
	<c:if test="${msg!=null }">
		<script type="text/javascript">
			alert("${msg}");
		</script>
	</c:if>
	<form action="${pageContext.request.contextPath}/clothing/addClothing.do"
		method="post" enctype="multipart/form-data" class="addForm">
		<div class="addPhoto" style="height: 108px;">
				<span style="float: left;">服装图：&nbsp;&nbsp;</span>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传服装图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_pic1" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传服装图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_pic2" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传服装图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_pic3" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传服装图</span>
					</div>
					<input type="file" class="tohide" style="display: none;" name="photo_pic4" />
				</div>
				<div class="image">
					<div class="preview">
						<img class="imghead" border=0 src="" width="180px" height="180px" />
						<span class="select">上传服装图</span>
					</div>
					<input type="file" class="tohide" style="display: none;"  name="photo_pic5"/>
				</div>

			</div>
		<div class="addPhoto" style="height: 39px;">
			<span>货号：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
				type="text" class="input" name="no" />
		</div>
		<div class="addPhoto" style="height: 39px;">
			<span>服装名称：</span> <input type="text" class="input" name="name" />
		</div>
		<div class="addPhoto">
			<span>分类：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				id="big_class" style="width: 204px">
				<option value="-1">请选择大类</option>

				<c:forEach items="${clothingTypes}" var="big_class">
					<option value="${big_class.code}">${big_class.name}</option>
				</c:forEach>

			</select> <select id="middle_class" style="width: 204px">
				<option value="-1">请选择中类</option>
			</select> <select name="type_code" id="small_class" style="width: 204px">
				<option value="-1">请选择小类</option>
			</select>
		</div>
		<div class="addPhoto">
			<span>风格：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="style_code">
				<c:forEach items="${dic_style}" var="style">
					<option value="${style.code}">${style.value}</option>
				</c:forEach>
			</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span>品牌：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="brand_id" class="brand_id">
				<c:forEach items="${brands}" var="brands">
					<option value="${brands.id}">${brands.name}</option>
				</c:forEach>
			</select> <a class="addBarndHref" href="javaScript:;"> <img
				src="../images/add2.jpg" width="20px" height="20px"
				style="margin-top: -8px;">
			</a>
			<!--新增品牌弹出框-->
			<div class="hide-body-brand">
				<div class="close-window">
					<!-- 关闭窗口，也就是触发关闭div的事件-->
					<a href="javascript:;" title="关闭" class="close">×</a>
					<h4>新增品牌</h4>
				</div>
				<!-- 中间主体显示div 可以增加其他的样式-->
				<div class="login-body-brand dform">
					<ul>
						<li><label for="ppname">品牌名：</label> <input name="ppname"
							class="ipt ppname" type="text" id="ppname" value="" size="20" /></li>
						<li><label for="username">简介：</label> <textarea
								name="introduction" class="introduction"></textarea></li>
						<li><input id="add" class="btn btn-primary addbtn"
							type="button" name="submit" value="确定 " /> <input type="hidden"
							id="enterprise_id" value="${enterprise_id }"></li>
					</ul>
					<span class="commonUrl">${pageContext.request.contextPath}</span>
							<!--绝对路径-->
				</div>
			</div>
			<div class="body-color-brand"></div>
			<!--新增品牌弹出框结束-->
		</div>
		<div class="addPhoto">
			<span>面料成分：</span> <select name="component_code">
				<c:forEach items="${fabricComponents}" var="fabricComponents">
					<option value="${fabricComponents.code}">${fabricComponents.name}</option>
				</c:forEach>
			</select>&nbsp;&nbsp;&nbsp;&nbsp; <span>面料织法：</span> <select name="weave_code">
				<c:forEach items="${weaves}" var="weaves">
					<option value="${weaves.code}">${weaves.name}</option>
				</c:forEach>
			</select>

		</div>
		<div class="addPhoto">
			<span>版型：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="pattern_code" class="pattern_code">
				<c:forEach var="dic_pattern" items="${dic_pattern}">
					<option value="${dic_pattern.code}">${dic_pattern.value}</option>
				</c:forEach>
			</select>&nbsp;&nbsp;&nbsp;&nbsp; <span>年份：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="text" class="input year" name="year" />
		</div>
		<div class="addPhoto" style="height: 39px;">
			<span>色彩：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
				type="text" class="input" name="color" placeholder="如  蓝色" />
		</div>
		<div class="addPhoto" style="height: 39px;">
			<span>季节：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="text" class="input" name="season"  placeholder="如  夏季" />
		</div>

		<div class="addPhoto">
			<span>描述：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<textarea name="description" style="width: 242px; height: 80px;"></textarea>
		</div>
		<input type="hidden" name="enterprise_id" value="${enterprise_id }">
		<div class="addPhoto" style="position: relative; left: 14px;">
			<input class="btn btn-info" type="submit" value="提交">
		</div>

	</form>
</body>


</html>
